import request from '@/utils/axios'

const api = {
  user: {
    login: (params) => request.post('/api/login', params),
    msg_code: (params) => request.get('/api/msg_code', params),
    info: () => request.get('/api/info')
  },
  home: {
    banner: () => request.get('/api/banner'),
    tabmenu: () => request.get('/api/tabmenu')
  },
  product: {
    list: (params) => request.get('/api/products', params),
    classify: () => request.get('/api/classify')
  }
}

export default api
